<%@page import="com.hrs.pojo.User"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="author" content="order by 01yuanma.com" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<title>人力资源后台管理</title>
<!-- Bootstrap core CSS -->
<link href="css/bootstrap.css" rel="stylesheet">

<!-- Add custom CSS here -->
<link href="css/sb-admin.css" rel="stylesheet">
<link rel="stylesheet" href="font-awesome/css/font-awesome.min.css">
<!-- Page Specific CSS -->
<link rel="stylesheet"
	href="http://cdn.oesmith.co.uk/morris-0.4.3.min.css">
<style type="text/css">

	.error{
		color:red;
	}

</style>
</head>

<body>

	<div id="wrapper">

		<!-- Sidebar -->
		<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
		<!-- Brand and toggle get grouped for better mobile display -->
		<div class="navbar-header">
			<button type="button" class="navbar-toggle" data-toggle="collapse"
				data-target=".navbar-ex1-collapse">
				<span class="sr-only">Toggle navigation</span> <span
					class="icon-bar"></span> <span class="icon-bar"></span> <span
					class="icon-bar"></span>
			</button>
			<a class="navbar-brand" href="index.html">人力资源后台管理</a>
		</div>

		<!-- Collect the nav links, forms, and other content for toggling -->
		<div class="collapse navbar-collapse navbar-ex1-collapse">
			<ul class="nav navbar-nav side-nav">
				<li><a href="index.do"><i class="fa fa-user"></i>首页</a></li>
				<li><a href="userShow.do?p=1"><i class="fa fa-dashboard"></i>用户管理</a></li>
				<li class="active"><a href="empShow.do?p=1"><i
						class="fa fa-bar-chart-o"></i> 员工管理</a></li>
				<li><a href="trainShow.do?p=1"><i class="fa fa-bar-chart-o"></i>
						培训管理</a></li>
			</ul>

			<ul class="nav navbar-nav navbar-right navbar-user">
				<li class="dropdown user-dropdown"><a href="#"
					class="dropdown-toggle" data-toggle="dropdown"> <i
						class="fa fa-user"></i> <%=((User) session.getAttribute("USER_SESSION")).getUsername()%>
						<b class="caret"></b></a>
					<ul class="dropdown-menu">
						<li class="divider"></li>
						<li><a href="exit.do"><i class="fa fa-power-off"></i> 退出</a></li>
					</ul></li>
			</ul>
		</div>
		<!-- /.navbar-collapse --> </nav>

		<div id="page-wrapper">

			<div class="row">
				<div class="col-lg-12">
					<h1>新增员工</h1>
					<ol class="breadcrumb">
						<li class="active"><i class="fa fa-dashboard"></i> 新增员工</li>
					</ol>
				</div>
			</div>
			<div class="row">
				<div class="col-lg-12">
					<form:form action="empAddDo.do" method="post" modelAttribute="employee">
						<table class="table table-border">
							<tr>
								<td style="text-align: right;">员工姓名：</td>
								<td><form:input path="ename" class="form-control" /></td>
								<td><form:errors path="ename" cssClass="error"></form:errors>
								</td>
							</tr>
							<tr>
								<td style="text-align: right;">部门：</td>
								<td><form:select path="did" class="form-control">
<!-- 									查询 -->
										<form:option value="0">---请选择---</form:option>
										<form:option value="1">开发部</form:option>
										<form:option value="2">设计部</form:option>
										<form:option value="3">人事部</form:option>
									</form:select></td>
							</tr>
							<tr>
								<td style="text-align: right;">岗位：</td>
								<td><form:select path="jid" class="form-control">
										<form:option value="0">---请选择---</form:option>
										<form:option value="1">开发工程师</form:option>
										<form:option value="2">助理工程师</form:option>
									</form:select></td>
							</tr>
							<tr>
								<td style="text-align: right;">身份证号：</td>
								<td><form:input path="cardno" class="form-control" /></td>
								<td><form:errors path="cardno" cssClass="error"></form:errors>
								</td>
							</tr>
							<tr>
								<td style="text-align: right;">地址姓名：</td>
								<td><form:input path="address" class="form-control" /></td>
								<td><form:errors path="address" cssClass="error"></form:errors>
								</td>
							</tr>
							<tr>
								<td style="text-align: right;">电话号码：</td>
								<td><form:input path="tel" class="form-control" /></td>
								<td><form:errors path="tel" cssClass="error"></form:errors>
								</td>
							</tr>
							<tr>
								<td style="text-align: right;">电子邮箱：</td>
								<td><form:input path="email" class="form-control" /></td>
								<td><form:errors path="email" cssClass="error"></form:errors>
								</td>
							</tr>
							<tr>
								<td style="text-align: right;">生日：</td>
								<td><form:input path="birthday" class="form-control" /></td>
								<td><form:errors path="birthday" cssClass="error"></form:errors>
								</td>
							</tr>
							<tr>
								<td></td>
								<td>
								<input type="submit" value="新增" class="btn btn-primary" />
								<a href="empShow.do?p=1" class="btn btn-info">返回</a>
								</td>
							</tr>
						</table>
					</form:form>
				</div>
			</div>
		</div>
		<!-- /#page-wrapper -->

	</div>
	<!-- /#wrapper -->

	<!-- JavaScript -->
	<script src="js/jquery-1.10.2.js"></script>
	<script src="js/bootstrap.js"></script>

	<!-- Page Specific Plugins -->
	<script
		src="//cdnjs.cloudflare.com/ajax/libs/raphael/2.1.0/raphael-min.js"></script>
	<script src="http://cdn.oesmith.co.uk/morris-0.4.3.min.js"></script>
	<script src="js/morris/chart-data-morris.js"></script>
	<script src="js/tablesorter/jquery.tablesorter.js"></script>
	<script src="js/tablesorter/tables.js"></script>

</body>
</html>